<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLinksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('users', function (Blueprint $table) {
            $table->engine = 'MyISAM';
            $table->increments('links_id')->default('')->comment('// id');
            $table->string('links_name')->default('')->comment('// 名称');
            $table->string('links_title')->default('')->comment('// 标题');
            $table->string('links_url')->default('')->comment('// 链接');
            $table->integer('links_order')->default(0)->comment('// 排序');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::dropIfExists('links');

    }
}
